/*
 * @Author: shawnxiao
 * @Date: 2021-02-16 18:23:09
 * @LastEditTime: 2021-12-07 18:51:26
 * @FilePath: /vite-vue3-ts/src/common/directives/permission.ts
 */
const authDirective = {
  mounted(el: any, binding: any) {
    console.log(el, binding)
  },
  updated(el: any, binding: any) {
    console.log(el, binding)
  }
}

export function setupPermissionDirective(app: any) {
  app.directive('auth', authDirective)
}

export default authDirective
